raar.process.sensor
Class RACompass

java.lang.Object
  extended byraar.process.RAProcess
      extended byraar.process.sensor.RASensor
          extended byraar.process.sensor.RACompass
All Implemented Interfaces:
java.io.Serializable

public class RACompass
extends RASensor
implements java.io.Serializable

Returns the angle the agent currently is in.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.process.sensor.RASensor
emulateRegisterNames, emulateRegisterObjects, output, outputName
 
Fields inherited from class raar.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Constructor Summary
RACompass(RAAgent agent)
          Construct.
 
Method Summary
 java.lang.String explain()
          Give a String that explains what the sensor does.
 void run()
          Implemented run method, from the super class.
 java.lang.String toString()
          Sensor string representation.
 
Methods inherited from class raar.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, set, setAgent, setOutput, setSourceCode, suppliesOutput
 
Methods inherited from class raar.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RACompass

public RACompass(RAAgent agent)
Construct.

Method Detail

run

public void run()
         throws RAException
Implemented run method, from the super class.

Specified by:
run in class RASensor
Throws:
RAException

toString

public java.lang.String toString()
Sensor string representation.

Specified by:
toString in class RASensor

explain

public java.lang.String explain()
Give a String that explains what the sensor does.

Specified by:
explain in class RASensor